package com.maxd.respository.admin;

import com.maxd.model.AdminInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminJpaRepository extends JpaRepository<AdminInfo, Long> {

    @Query(value = "from AdminInfo a where a.storeId=:storeId")
    AdminInfo findAdminInfoByStoreId(@Param("storeId") Long storeId);

}
